<?php
if (!$is_editor)
{
	echo "<div style='text-align:left;'>".$model->$name."</div>";
}else{
	echo CHtml::activeTextField($model, "[".$model->index."]$name", array('size' => 20, 'style'=>'text-align:left; width: 99%;'));
}
?>
